package com.edgclub.edg.model;

import com.hyphenate.easeui.model.UserAuth;

import java.io.Serializable;
import java.util.ArrayList;

public class Topic implements Serializable, Cloneable {

	private static final long serialVersionUID = 1497935316093392911L;

	private String userId = "0";
	private String nick = "";
	private String logo = "";
	private String favicon = "";
	private String category = ""; //类别 0：普通帖子 1：视频帖子  2-约黑贴
	private String title = "";
	private String content = "";
	private String likes = "0";
	private String replys = "0";
	private String shares = "0";
	private String favorites = "0";
	private String location = "";
	private String cityName = "";
	private String provName = "";
	private String createAt = "0";
	private String liked = "0";
	private String dist = "";
	private String postsId = "0";
	private String cateName = "";
	private String state = "1"; //0帖子不可见 1帖子可见
	private String favorited = "0";// 是否收藏 0否 1是
	private ArrayList<PostsAlbum> albums;// 对应的相册
	private ArrayList<PostsAlbum> audios;// 对应的语音
	private PostsAlbum video; //对应的视频
	private String nice = "0";//0:默认 1：加精

	private User user;//发帖者对象信息

	private ArrayList<User> likeUsers;

	private String titleMatch;

	private String showLoc = "0";//1：显示位置信息 0：隐藏位置信息

	private UserAuth userAuth;
	
	private String sex;
	private String integral="0"; //积分

	private String model = "";

	private ArrayList<LikeUser> postsLikeUsers;  //点赞用户信息
	private ArrayList<Reply> hotReplys ; //热门评论

	private String redId;
	private String redNum;
	private String redTitle;
	private String redRemark;


	private String black="0";

	private String redState="0";

	private int redType;

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getFavicon() {
		return favicon;
	}

	public void setFavicon(String favicon) {
		this.favicon = favicon;
	}

	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getLikes() {
		return likes;
	}

	public void setLikes(String likes) {
		this.likes = likes;
	}

	public String getReplys() {
		return replys;
	}

	public void setReplys(String replys) {
		this.replys = replys;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getCreateAt() {
		return createAt == null ? System.currentTimeMillis() + "" : createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getDist() {
		return dist;
	}

	public void setDist(String dist) {
		this.dist = dist;
	}

	public String getPostsId() {
		return postsId;
	}

	public void setPostsId(String postsId) {
		this.postsId = postsId;
	}

	public ArrayList<PostsAlbum> getAlbums() {
		return albums;
	}

	public void setAlbums(ArrayList<PostsAlbum> albums) {
		this.albums = albums;
	}

	public String getLiked() {
		return liked;
	}

	public void setLiked(String liked) {
		this.liked = liked;
	}

	public String getCateName() {
		return cateName;
	}

	public void setCateName(String cateName) {
		this.cateName = cateName;
	}

	@Override
	public Object clone() throws CloneNotSupportedException {
		// TODO Auto-generated method stub
		return super.clone();
	}

	public String getTitleMatch() {
		return titleMatch;
	}

	public void setTitleMatch(String titleMatch) {
		this.titleMatch = titleMatch;
	}

	public String getShares() {
		return shares;
	}

	public void setShares(String shares) {
		this.shares = shares;
	}

	public ArrayList<User> getLikeUsers() {
		return likeUsers;
	}

	public void setLikeUsers(ArrayList<User> likeUsers) {
		this.likeUsers = likeUsers;
	}

	public String getFavorited() {
		return favorited;
	}

	public void setFavorited(String favorited) {
		this.favorited = favorited;
	}

	public String getShowLoc() {
		return showLoc;
	}

	public void setShowLoc(String showLoc) {
		this.showLoc = showLoc;
	}


	public ArrayList<PostsAlbum> getAudios() {
		return audios;
	}

	public void setAudios(ArrayList<PostsAlbum> audios) {
		this.audios = audios;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getProvName() {
		return provName;
	}

	public void setProvName(String provName) {
		this.provName = provName;
	}

	public UserAuth getUserAuth() {
		return userAuth;
	}

	public void setUserAuth(UserAuth userAuth) {
		this.userAuth = userAuth;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public ArrayList<LikeUser> getPostsLikeUsers() {
		return postsLikeUsers;
	}

	public void setPostsLikeUsers(ArrayList<LikeUser> postsLikeUsers) {
		this.postsLikeUsers = postsLikeUsers;
	}

	public ArrayList<Reply> getHotReplys() {
		return hotReplys;
	}

	public void setHotReplys(ArrayList<Reply> hotReplys) {
		this.hotReplys = hotReplys;
	}

	public String getFavorites() {
		return favorites;
	}

	public void setFavorites(String favorites) {
		this.favorites = favorites;
	}

	public String getRedId() {
		return redId;
	}

	public void setRedId(String redId) {
		this.redId = redId;
	}

	public String getRedNum() {
		return redNum;
	}

	public void setRedNum(String redNum) {
		this.redNum = redNum;
	}

	public String getRedTitle() {
		return redTitle;
	}

	public void setRedTitle(String redTitle) {
		this.redTitle = redTitle;
	}

	public String getRedRemark() {
		return redRemark;
	}

	public void setRedRemark(String redRemark) {
		this.redRemark = redRemark;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getNice() {
		return nice;
	}

	public void setNice(String nice) {
		this.nice = nice;
	}

	public PostsAlbum getVideo() {
		return video;
	}

	public void setVideo(PostsAlbum video) {
		this.video = video;
	}

	public String getBlack() {
		return black;
	}

	public void setBlack(String black) {
		this.black = black;
	}

	@Override
	public boolean equals(Object o) {
		try {
			Topic other = (Topic) o;
			return other.postsId.equals(postsId);
		} catch (ClassCastException e) {
			e.printStackTrace();
		}
		return super.equals(o);
	}

	public String getRedState() {
		return redState;
	}

	public void setRedState(String redState) {
		this.redState = redState;
	}

	public int getRedType() {
		return redType;
	}

	public void setRedType(int redType) {
		this.redType = redType;
	}
}
